
<div id="section-title">
	<div class="wrapper">
		<div class="grid-25 section-title">
			<?php echo $html->link(__('+ Publicar página', true), array('controller' => 'posts', 'action' => 'dashboard_add', 'type' => 'pages'), array('escape' => false, 'class' => 'btn btn-blue right')); ?>
			<h2><?php __('Administrar páginas'); ?></h2>
		</div>
	</div>
</div>

<div id="body">
	<div class="wrapper">
		<div class="content pages">
			<div class="grid-18">
			<?php if(!empty($posts)): ?>
				<ul class="list">
				<?php foreach($posts AS $row): ?>
					<li>
						<div class="tools">
							<?php echo $html->link(__('Eliminar', true), array('shop' => $this->params['shop'], 'controller' => 'posts', 'action' => 'dashboard_delete', 'type' => 'pages', $row['Post']['id']), array('class' => 'icon delete')); ?>
							<?php echo $html->link(__('Editar', true), array('shop' => $this->params['shop'], 'controller' => 'posts', 'action' => 'dashboard_edit', 'type' => 'pages', $row['Post']['id']), array('class' => 'icon delete')); ?>
						</div>
						<h4><?php echo $html->link($row['Post']['title'], array('shop' => $this->params['shop'], 'controller' => 'posts', 'action' => 'edit', 'type' => 'blog', $row['Post']['id']), array('class' => 'title')); ?></h4>
					</li>
				<?php endforeach; ?>
				</ul>
			<?php else: ?>
				<div class="message">
					<p><?php __('Para agregar tu primera noticia debes presionar el boton "Publicar noticia".'); ?></p>
				</div>
			<?php endif; ?>
			</div>
			<div class="grid-7">
			
			</div>
		</div>
	</div>
</div>